package com.malty.mall.domain.entity.ums;


import com.baomidou.mybatisplus.annotation.TableName;
import com.malty.mall.domain.dto.req.UmsAdminParam;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author malty
 */
@Data
@ApiModel("用户数据")
@TableName("ums_admin")
@NoArgsConstructor
public class UserAdmin {
    private Integer id;
    private String username;
    private String nickname;
    private String password;
    private String email;
    private Date createTime;
    private Date lastLogin;
    private String note;
    private String status;


    public UserAdmin(UmsAdminParam umsAdminParam) {
        this.username = umsAdminParam.getUsername();
        this.password = umsAdminParam.getPassword();
        this.nickname = umsAdminParam.getNickName();
        this.email = umsAdminParam.getEmail();
        this.note = umsAdminParam.getNote();
    }
}
